package com.superb.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @Author: ajie
 * @CreateTime: 2024-06-19 08:43
 */
@Data
@Component
@RefreshScope
@ConfigurationProperties(prefix = "spring.data.redis")
public class RedisConfigProperties {

    private String password;

    private String database;

    private int port = 6379;

    private String host;

}
